package com.malljelly.study.trans;

import com.google.common.base.Function;
import com.malljelly.study.dao.po.Member;
import com.malljelly.study.member.vo.back.BackMemberRequestVo;
import org.springframework.beans.BeanUtils;

import javax.annotation.Nullable;
import java.sql.Timestamp;

/**
 * Created by 骑着蜗牛去旅行 on 2018/8/12.
 */
public class MemberVoToMemberPo  implements Function<BackMemberRequestVo,Member> {


    @Override
    public Member apply(@Nullable BackMemberRequestVo vo) {
        Member po=new Member();
        BeanUtils.copyProperties(vo,po);
        return po;
    }
}
